package com.moetube.search.listener;

import com.moetube.search.service.ESManagerService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/*@Component*/
public class VideoDelListener {

    @Autowired
    private ESManagerService esManagerService;

    /*@RabbitListener(queues = "")*/
    public void receiveMessage(String videoId){
        System.out.println("videoId:"+videoId);

        esManagerService.delDataByVideoId(videoId);
    }
}
